gempy.core.data.SurfacePointsTable

class gempy.core.data.SurfacePointsTable(data: ndarray, name_id_map: dict[str, int] | None = None, _model_transform: Transform | None = None)[source]

A dataclass to represent a table of surface points in a geological model.

Examples using gempy.core.data.SurfacePointsTable

Moureze

Moureze

Methods

__init__(data[, name_id_map, _model_transform])

from_arrays(x, y, z, names[, nugget, ...])

get_surface_points_by_id(id)

get_surface_points_by_id_groups()

get_surface_points_by_name(name)

id_to_name(id)

initialize_empty()

Attributes

df

dt

The custom data type for the data array.

id

ids

model_transform

name_id_map

A mapping between surface point names and ids.

nugget

xyz

data

A structured NumPy array holding the X, Y, Z coordinates, id, and nugget of each surface point.

data: ndarray

A structured NumPy array holding the X, Y, Z coordinates, id, and nugget of each surface point.

name_id_map: dict[str, int] | None = None

A mapping between surface point names and ids.

dt = dtype([('X', '<f8'), ('Y', '<f8'), ('Z', '<f8'), ('id', '<i4'), ('nugget', '<f8')])

The custom data type for the data array.

__init__(data: ndarray, name_id_map: dict[str, int] | None = None, _model_transform: Transform | None = None) None